package com.ruoyi.qd.domain;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 交易流水对象 qd_trade_water
 * 
 * @author tushiguang
 * @date 2024-07-24
 */
@Accessors(chain = true)
@Data(staticConstructor = "create")
@EqualsAndHashCode(callSuper = true)
@Table("qd_trade_water")
public class TradeWater extends BaseEntity<TradeWater> {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id(keyType= KeyType.Auto)
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 交易类型（10钱包充值 60预约机器人支付）
     * @see com.ruoyi.qd.enums.TradeWaterTypeEnum
     */
    @Excel(name = "交易类型", readConverterExp = "10钱包充值,60预约机器人支付")
    private String type;

    /**
     * 交易金额
     */
    @Excel(name = "交易金额")
    private BigDecimal money;

}
